About 2118 letters

About 11 minutes

#HTML <form>

The <form> HTML element represents a document section containing interactive controls for submitting information.

#Attributes

  • accept Deprecated : Comma-separated content types the server accepts.

    Note: This attribute has been deprecated and should not be used. Instead, use the accept attribute on <input type=file> elements.

  • accept-charset: The character encoding accepted by the server. The specification allows a single case-insensitive value of "UTF-8", reflecting the ubiquity of this encoding (historically multiple character encodings could be specified as a comma-separated or space-separated list).

  • autocapitalize: Controls whether inputted text is automatically capitalized and, if so, in what manner. See the autocapitalize global attribute page for more information.

  • autocomplete: Indicates whether input elements can by default have their values automatically completed by the browser. autocomplete attributes on form elements override it on <form>. Possible values:

    • off: The browser may not automatically complete entries. (Browsers tend to ignore this for suspected login forms; see Managing autofill for login fields.)
    • on: The browser may automatically complete entries.
  • name: The name of the form. The value must not be the empty string, and must be unique among the form elements in the forms collection that it is in, if any.

  • rel: Controls the annotations and what kinds of links the form creates. Annotations include external, nofollow, opener, noopener, and noreferrer. Link types include help, prev, next, search, and license. The rel value is a space-separated list of these enumerated values.

Created in 6/9/2025

Updated in 6/9/2025